//
//  CustomView.m
//  UI01_UIView
//
//  Created by aaaaaa on 16/6/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CustomView.h"

@implementation CustomView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor redColor];
    }
    
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame withColor:(UIColor *)backgroundColor{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = backgroundColor;
    }
    return self;
}












@end
